package cn.mall.base.constants;

public enum OrderStateEnum implements Displayable{

    PENDORDER("120301","待接单"),
    INLINE("120302","排队中"),
    ONGOING("120303","进行中"),
    FINISHED("120304","已完成"),
    CNACLEOEDER("120305","订单取消");


    /**
     * 枚举代码
     */
    private String code;
    /**
     * 枚举显示
     */
    private String display;

    /**
     * 构造函数
     * @param code
     * @param display
     */
    OrderStateEnum(String code, String display) {
        this.code = code;
        this.display = display;
    }

    @Override
    public String code() {
        return this.code;
    }

    @Override
    public String display() {
        return this.display;
    }
}
